package com.spark.gaea.core;

public enum ApiErrorCode {
	MALFORMED_PARAMETER_ERROR(430), PARAM_ERROR(431), UNSUPPORTED_ACTION_ERROR(432), API_LIMIT_EXCEED(
			429), INTERNAL_ERROR(530), ACCOUNT_ERROR(531), ACCOUNT_RESOURCE_LIMIT_ERROR(
			532), PARAMETER_VALIDATION_ERROR(535);

	private int httpCode;

	ApiErrorCode(final int httpStatusCode) {
		this.httpCode = httpStatusCode;
	}

	public int getHttpCode() {
		return this.httpCode;
	}

	public void setHttpCode(final int httpCode) {
		this.httpCode = httpCode;
	}

	@Override
	public String toString() {
		return String.valueOf(this.httpCode);
	}
}
